/*
 * @Author: sunnie.Song 
 * @Date: 2018-02-06 15:35:16
 * @Description: 全局配置文件.   
 */

//接入服务器接口地址根目录
//本地开发，就把ENV 设置成0
//测试环境，就把ENV 设置成1
//生产环境，就把ENV 设置成2

const ENV =2
var server_base = ''
var server_shop = ''
var server_sso = ''
var server_search = ''
var server_upload = ''
switch (ENV) {
  case 0:
    server_base = 'localhost:4000'
    server_shop = 'http://192.168.1.52:8086/jixiang-web-shop'
    server_sso = 'http://192.168.1.52:8086/jixiang-web-sso'
    server_search = 'http://test.sportjx.com/jixiang-web-search'
    server_upload = 'http://test.sportjx.com/jixiang-web-source'
    break
  case 1:
    server_base = 'http://test.sportjx.com'
    server_shop = 'http://test.sportjx.com/jixiang-web-shop'
    server_sso = 'http://test.sportjx.com/jixiang-web-sso'
    server_search = 'http://test.sportjx.com/jixiang-web-search'
    server_upload = 'http://source.sportjx.com:8088/jixiang-web-source'

    break
  case 2:
    server_base = 'http://www.sportjx.com'
    server_shop = 'http://www.sportjx.com/jixiang-web-shop'
    server_sso = 'http://www.sportjx.com/jixiang-web-sso'
    server_search = 'http://img.sportjx.com/jixiang-web-search'
    server_upload = 'http://img.sportjx.com/jixiang-web-source'
}

export { server_base, server_shop, server_sso, server_search, server_upload }
